package com.osdp.uc.api.impl;

import com.osdp.uc.api.IOrganizationApi;
import com.osdp.uc.dto.OrganizationDTO;
import com.osdp.uc.service.IUcOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrganizationApiImpl implements IOrganizationApi {

    @Autowired
    private IUcOrganizationService ucOrganizationService;

    @Override
    public List<OrganizationDTO> queryOrganizationByUserId(String userId) {
        return ucOrganizationService.queryOrganizationByUserId(userId);
    }
}
